package name.marz.to.go.btree.node;

public abstract class AbstractNode implements Node {
	protected Object leftPointer = null;
	private String name;

	AbstractNode() {
		super();
	}
	AbstractNode(String name) {
		this.name = name;
	}
	
	@Override
	public Object getLeftPointer() {
		return leftPointer;
	}

	public void setLeftPointer(Object leftPointer) {
		this.leftPointer = leftPointer;
	}
	
	@Override
	public void accept(NodeVisitor visitor) {
		visitor.visit(this);
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}
	@Override
	public abstract Object clone();
}